/*---------------------------------------------------------
    ev_util.lua - Utility Functions
	by Lead4u
---------------------------------------------------------*/
	evorp.sql = {};
	local door = { "func_door_rotating", "prop_door_rotating", "func_door", "func_breakable_surf", "class C_BaseEntity" }

/*---------------------------------------------------------
	Send Data To Client
		Args: ( command, data, player )
---------------------------------------------------------*/

	function evorp:Send( command, data, player )
		
	end
	
/*---------------------------------------------------------
	Do SQL Functions
		Args: ( table, column, data, player )
---------------------------------------------------------*/
	
	function evorp.sql:Update( table, col, data, player )
	
		sql.Query( "UPDATE ".. table .." SET ".. col .." = " .. data .. " WHERE player = " .. player:UniqueID() .. ";" )
	
	end
	
	function evorp.sql:Select( table, col, player ) 
	
		local row = sql.QueryRow( "SELECT " ..col.. " FROM "..table.." WHERE player = " .. player:UniqueID() .. ";" )
			return row;
			
	end 
/*---------------------------------------------------------
	No TOUCHY!
---------------------------------------------------------*/
	local function physgunPickup( ply, ent )
		if table.HasValue( door, ent:GetClass() ) then
			return false // Don't allow them to pick up players!!
		else
			return true // If not a player, allow them to pick up the item.
		end
end
 
hook.Add( "PhysgunPickup", "evo_nophys", physgunPickup );